<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #d1{
            color: red;
        }
        /*类选择器*/
        .c1{
            color: green;
        }
        /*分组选择器*/
        #d1,.c1{
            background-color: yellow;
        }
        /*属性选择器*/
        [type]{
            color: red;
        }
        [type='text']{
            background-color: green;
        }
        /*任意元素选择器*/
        *{
            /*边框:粗细  实线  红色*/
            border: 1px solid red;
        }
    </style>
</head>
<body>
<input type="text">
<input type="password">
<div id="d1">刘备</div>
<div>关羽</div>
<div class="c1">张飞</div>
<span>苹果</span>
<span>香蕉</span>
<span class="c1">橘子</span>
<h3 class="c1">洗衣机</h3>

</body>
</html>